package com.woniuxy.threeproject.end_water_project_user.dao;

import com.woniuxy.threeproject.end_water_project_user.domain.Repair;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 维修表 Mapper 接口
 * </p>
 *
 * @author Lucas
 * @since 2021-08-25
 */
public interface RepairMapper extends BaseMapper<Repair> {
    //修改维修表中的原因字段
    @Update("update wn_repair set reason=#{reason} where user_id=#{userId}")
    Boolean updateReason(Repair repair);
}
